package com.nit.lab.vote.dto.basic;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class SubjectDTO {
    private Long key;
    private Long subjectId;
    private String subjectName;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date gmtCreate;

    public SubjectDTO() {
    }

    public SubjectDTO(Long key, Long subjectId, String subjectName, Date gmtCreate) {
        this.key = key;
        this.subjectId = subjectId;
        this.subjectName = subjectName;
        this.gmtCreate = gmtCreate;
    }

    public Long getKey() {
        return key;
    }

    public void setKey(Long key) {
        this.key = key;
    }

    public Long getSubjectId() {
        return subjectId;
    }

    public void setSubjectId(Long subjectId) {
        this.subjectId = subjectId;
    }

    public String getSubjectName() {
        return subjectName;
    }

    public void setSubjectName(String subjectName) {
        this.subjectName = subjectName;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}
